/**
 * Created by udi on 2016/11/28.
 */


require(["jv", "vue", "pop", "mui"], function () {
  var Vue = require("vue");

  if (!location.map.token) {
    jv.setToken();
  }


  var bindVue = function (data) {
    var vm = jv.vm = new Vue({
      el: '#app',
      data: data,
      computed: {},
      methods: {
        userSave: function () {
          jv.post("/wuye/user/save", jv.vm.$data, function (res) {
            mui.toast("保存成功");
          })
        }
      }
    });
  }


  jv.post("/wuye/user/info", bindVue);

});
